<?php
/* 
 * ********* CVS HEADER ********* 
 * 
 * $RCSfile: admmasksuppr.php,v $ 
 * $Date: 2005/08/29 15:13:12 $ 
 * $Revision: 1.2 $ 
 * 
 * ********* CVS HEADER ********* 
 */
$query="DELETE FROM droitmasque WHERE droitmasque.id_mask='$id_mask'";
$result=rportalrequete($query) or rportalerreur($query,"?op=");

$query="DELETE FROM masque_selection WHERE masque_selection.id_mask='$id_mask'";
$result=rportalrequete($query) or rportalerreur($query,"?op=");

$query="DELETE FROM fonctionsmasque WHERE fonctionsmasque.id_mask='$id_mask'";
$result=rportalrequete($query) or rportalerreur($query,"?op=");

$query="DELETE FROM masque WHERE masque.id_mask='$id_mask'";
$result=rportalrequete($query) or rportalerreur($query,"?op=");

header("Location: ?op=admmaskgest");
exit;
?>